package org.grow.bill.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.grow.bill.entity.enums.PurchaseBillState;


import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 21-8-11
 */
@TableName("PurchaseBill")
@Data
public class PurchaseBill {

    @TableId(type = IdType.AUTO)
    private Integer purchaseBillId;
    private String purchaseBillCode;

//    供应商编码
    private String distributorFk;
//    冗余字段
    private String distributorName;
// 送货人
    private String deliver;
//送货人联系方式
    private String deliverPhone;
//实际配送时间
    private LocalDateTime deliverTime;

//    预计采购付款
    private BigDecimal advanceCharge;
//    实际采购付款
    private BigDecimal actualCharge;
//    运费/项目支出/额外费用
    private BigDecimal ultraCharge;

    private PurchaseBillState purchaseBillState;

//店长 发起采购计划的人
    private String planner;
//    店员 点验到店的货物清单
    private String examiner;
//  对此次采购 的评分和评语
    private String billRemark;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @Version
    private Integer version=0;

    private Boolean isDeleted;


    @TableField(exist = false)
    private List<CommodityBatch> commodityBatches;


}
